package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.User;
import cn.wolfcode.car.shiro.ShiroUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter
@Setter
public class CustomerVisit {
    /** id*/
    private Long id;
    /** 客户id*/
    private Long customerId;
    private Customer customer;
    /** 联系人id*/
    private Long linkmanId;
    private CustomerLinkmen linkmen;
    /** 拜访方式, 1 上门走访, 2 电话拜访*/
    private Integer visitType;
    /** 拜访原因*/
    private String visitReason;
    /** 交流内容*/
    private String content;
    /** 拜访时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date visitDate;//前端带数据

    /** 录入人*/
    private Long inputUser = ShiroUtils.getUserId();
    private User user;

    /** 录入时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date inputTime;

}